<template>
  <div id="app">
    <router-view/>
  </div>
</template>
<script>
  export default {
    name: "index",
    data() {
      return {
      }
    },
    mounted: function () {
      //此方法刷新页面时也会执行
      /*window.addEventListener('beforeunload',()=>{
        localStorage.removeItem('token');
      });*/
    },
  }
</script>